package com.yw.entity;


import java.util.List;

public class Dept {

  private int dno;
  private String dname;
  private List<Emp> empList;
  public Dept() {
  }


  public Dept(int dno, String dname, List<Emp> empList) {
    this.dno = dno;
    this.dname = dname;
    this.empList = empList;
  }

  public List<Emp> getEmpList() {
    return empList;
  }

  public void setEmpList(List<Emp> empList) {
    this.empList = empList;
  }

  public int getDno() {
    return dno;
  }

  public void setDno(int dno) {
    this.dno = dno;
  }


  public String getDname() {
    return dname;
  }

  public void setDname(String dname) {
    this.dname = dname;
  }

//  @Override
//  public String toString() {
//    return "Dept{" +
//            "dno=" + dno +
//            ", dname='" + dname + '\'' +
//            ", empList=" + empList +
//            '}';
//  }
}
